s = 9260  # 月工资
d1 = 442  # 养老保险
d2 = 110  # 医疗险
d3 = 42  # 失业险
d4 = 500  # 住房公积金
d5 = 500  # 子女教育
d6 = 500  # 赡养老人
t = 5000  # 每月免税额度

# 计算全年应纳税所得额
annual = (s - d1 - d2 - d3 - d4 - d5 - d6 - t) * 12


# 计算应缴税款
if annual <= 0:
    tax = 0
elif annual <= 36000:
    tax = annual * 0.03
elif annual <= 144000:
    tax = 36000 * 0.03 + (annual - 36000) * 0.1
elif annual <= 300000:
    tax = 36000 * 0.03 + (144000 - 36000) * 0.1 + (annual - 144000) * 0.2
elif annual <= 420000:
    tax = 36000 * 0.03 + (144000 - 36000) * 0.1 + (300000 - 144000) * 0.2 + (annual - 300000) * 0.25
elif annual <= 660000:
    tax = 36000 * 0.03 + (144000 - 36000) * 0.1 + (300000 - 144000) * 0.2 + (420000 - 300000) * 0.25 + (annual - 420000) * 0.3
elif annual <= 960000:
    tax = 36000 * 0.03 + (144000 - 36000) * 0.1 + (300000 - 144000) * 0.2 + (420000 - 300000) * 0.25 + (660000 - 420000) * 0.3 + (annual - 660000) * 0.35
else:
    tax = 36000 * 0.03 + (144000 - 36000) * 0.1 + (300000 - 144000) * 0.2 + (420000 - 300000) * 0.25 + (660000 - 420000) * 0.3 + (960000 - 660000) * 0.35 + (annual - 960000) * 0.45

print(f"应纳税收入：{annual}")
print(f"应缴税：{tax}")